Cavern is a game converted from the Raspberry Pi Organization's book "Code the Classics" to RISC OS.

Two versions of the game are supplied:
- a BBC Basic & AMCOG devkit version, running in 256 colour graphics mode
- a Python3 & Pygame version, running in 16M colour graphics mode

The game is a modern take on the game of Bubble Bobble. It is a platformer type of game whereby you try and trap robots. You do this by blowing orbs towards them. Robots trapped by an orb will float inside the orb to the top of the screen and pop/dissapear. Try and defeat all robots this way to progress to the next level. Bonuses will appear at random on the screen. Pick them up for a few extra points. Be quick though because they do disappear. Orbs with trapped enemies that pop will give extra bonuses.

Features:
- 2D game
- Levels are being generated with an increasing number of enemies
- 800 by 600 resolution
- In game music and sound FX

The BBC Basic version has a few extra features, such as:
- High-score list

BBC Basic version Compatibility:
The game has been tested on Raspberry Pi 2B/4/400, RPCEMU 0.9.3 with RISC OS 5.28/9, ARMX6 and Titanium. Being an AMCOG Development Kit game the game is expected to run on other RISC OS 5 platforms as well, but this has not yet been tested. On Raspberry Pi the following controllers are supported:
- SNES
- XBOX 360

Python3 version Compatibility:
The game has been tested on Raspberry Pi 4 with RISC OS 5.28/9, Python3.8 and Pygame 1.9.6. The game is expected to run on other RISC OS 5 platforms as well, but this has not yet been tested. RPi 4, similar hardware or better is recommended for best performance. Please see the included Readme file for instructions on how to install the game, Python and Pygame.

Book link: https://www.raspberrypi.org/blog/code-the-classics-on-sale-now/